package t4;

import java.nio.file.FileAlreadyExistsException;

public class PlainRect extends Rect{
   private int StartX;
   private int StartY;

    public int getStartX() {
        return StartX;
    }

    public void setStartX(int startX) {
        StartX = startX;
    }

    public int getStartY() {
        return StartY;
    }

    public void setStartY(int startY) {
        StartY = startY;
    }
    public PlainRect(int startX,int startY,int wide,int height) {
        super(wide,height);
        this.StartX=startX;
        this.StartY=startY;
    }
    public PlainRect() {
        this.StartX=0;
        this.StartY=0;
    }
    public boolean isInside(double x,double y) {
        boolean t=true;
        boolean f=false;
       if (x>=getStartX()&&x<=(getStartX()+getWide())&&y<getStartY()&&y>=(getStartY()-getHeight())) return t;
       else return f;
    }
}
